<ion-view view-title="限时抢购">
	<ion-nav-buttons side="right">
 	   <button class="button button-clear font-large-my" on-tap="onshow_flashsale()">发布活动</button>
   </ion-nav-buttons>
	
	
  <ion-content scroll="false">
	<div class="row font-large-my padding-0 text-center">
			<div class="col" on-tap="activeSlide(0)"  ng-class="selectIndex==0?'top-activated':''">
				进行中
			</div>
			<div class="col" on-tap="activeSlide(1)" ng-class="selectIndex==1?'top-activated':''">
				待审批
			</div>
			<div class="col" on-tap="activeSlide(2)" ng-class="selectIndex==2?'top-activated':''">
				已结束
			</div>
		</div>
	
	<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
		<!--描述：进行中-->
		<ion-slide>
			<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
				<!--描述：下拉刷新-->
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				  
				  <div class="list list-borderless" ng-repeat="doing in list.doing">
				    <li class="item item-image">
				    	<img src="{{doing.image.image}}" />
				    </li>	
				  	<li class="item padding-5">
				  		<span class="assertive">{{doing.name}}</span>
				  		<span class="right-zhang balanced font-large-my">进行中...</span>
				  	</li>
				  	<li class="item padding-5">
				 		<span class="right-zhang positive font-large-my"><i class="icon ion-android-contacts" on-tap="onshow_flashsale(pending.act_id)"></i>群互动</span>
				  		<p><i class="icon ion-clock"></i>&nbsp;开始时间：{{doing.start_time}}</p>
				  		<p><i class="icon ion-clock"></i>&nbsp;结束时间：{{doing.end_time}}</p>
				  	</li>
				  </div>
				<!--描述：当用户到达页脚或页脚附近时-->
				<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
		</ion-slide>
					
					
		<!--描述：待审批-->
		<ion-slide>
			<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
				<!--描述：下拉刷新-->
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			 
			 <div class="list list-borderless" ng-repeat="pending in list.pending">
				    <li class="item item-image">
				    	<img src="{{pending.image.image}}" />
				    </li>	
				  	<li class="item padding-5">
				  		<span class="assertive">{{pending.name}}</span>
				  		<span class="right-zhang energized font-large-my">待审批</span>
				  	</li>
				 	<li class="item padding-5">
				 		<span class="right-zhang positive font-large-my" on-tap="onshow_flashsale(pending.act_id)"><i class="icon ion-compose"></i>编辑</span>
				  		<p><i class="icon ion-clock"></i>&nbsp;开始时间：{{pending.start_time}}</p>
				  		<p><i class="icon ion-clock"></i>&nbsp;结束时间：{{pending.end_time}}</p>
				  	</li>
			</div>
				<!--描述：当用户到达页脚或页脚附近时-->
				<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
		</ion-slide>
		
		
		<!--描述：已结束 -->
		<ion-slide>
			<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
				<!--描述：下拉刷新-->
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				
			    <div class="list list-borderless" ng-repeat="ended in list.ended">
				    <li class="item item-image">
				    	<img src="{{ended.image.image}}" />
				    </li>	
				  	<li class="item padding-5">
				  		{{ended.name}}
				  		<span class="right-zhang font-large-my">已结束</span>
				  	</li>
				  <li class="item padding-5">
				 		<span class="right-zhang assertive font-large-my" on-tap="onshow_statistics(ended.act_id)"><i class="icon ion-android-options"></i>统计</span>
				  		<p><i class="icon ion-clock"></i>&nbsp;开始时间：{{ended.start_time}}</p>
				  		<p><i class="icon ion-clock"></i>&nbsp;结束时间：{{ended.end_time}}</p>
				  	</li>
				  </div>
				<!--描述：当用户到达页脚或页脚附近时-->
				<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
		</ion-slide>
	</ion-slide-box>
	
</ion-content>
</ion-view>